import service from '@/utils/request'

// @Tags SysLog
// @Summary 创建sysLog表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysLog true "创建sysLog表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /sysLog/createSysLog [post]
export const createSysLog = (data) => {
  return service({
    url: '/sysLog/createSysLog',
    method: 'post',
    data
  })
}

// @Tags SysLog
// @Summary 删除sysLog表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysLog true "删除sysLog表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysLog/deleteSysLog [delete]
export const deleteSysLog = (data) => {
  return service({
    url: '/sysLog/deleteSysLog',
    method: 'delete',
    data
  })
}

// @Tags SysLog
// @Summary 批量删除sysLog表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除sysLog表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysLog/deleteSysLog [delete]
export const deleteSysLogByIds = (data) => {
  return service({
    url: '/sysLog/deleteSysLogByIds',
    method: 'delete',
    data
  })
}

// @Tags SysLog
// @Summary 更新sysLog表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysLog true "更新sysLog表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /sysLog/updateSysLog [put]
export const updateSysLog = (data) => {
  return service({
    url: '/sysLog/updateSysLog',
    method: 'put',
    data
  })
}

// @Tags SysLog
// @Summary 用id查询sysLog表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SysLog true "用id查询sysLog表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sysLog/findSysLog [get]
export const findSysLog = (params) => {
  return service({
    url: '/sysLog/findSysLog',
    method: 'get',
    params
  })
}

// @Tags SysLog
// @Summary 分页获取sysLog表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取sysLog表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysLog/getSysLogList [get]
export const getSysLogList = (params) => {
  return service({
    url: '/sysLog/getSysLogList',
    method: 'get',
    params
  })
}

export const getProjectList = () => {
  return service({
    url: '/bcProject/getProjectList',
    method: 'get'
  })
}
